package com.itheima.health.service.impl;

import com.itheima.health.mapper.StatisticsOfMapper;
import com.itheima.health.service.StatisticsOfService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class StatisticsOfServiceImpl implements StatisticsOfService {

    @Autowired
    private StatisticsOfMapper statisticsOfMapper;


    //查询套餐占比
    @Override
    public List<Map> selectPackage() {
        List<Map> maps = statisticsOfMapper.selectStatisticsOf();
        return maps;
    }
}
